package com.qys.livesMall.open.modal.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class OpenSysMessageVo {

    @Schema(description = "id")
    private Long id;

    @Schema(description = "消息类型  0代表透传消息(使用这个，需要手机自己弹出通知，定义通知样式，content为json串)  1代表是通知(使用这个，标题和内容即手机上显示的通知标题和内容)")
    private Integer messageType;

    @Schema(description = "消息来源")
    private String source;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "提醒 0 未提醒 ，1已提醒")
    private Integer remind;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+0")
    private LocalDateTime createTime;

    @Schema(description = "创建时间 -时间戳")
    private Long createlongtime;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "是否删除")
    @TableLogic
    private Byte deleted;

    @Schema(description = "接收类型 ：0 全部、1  指定用户")
    private Integer receiveType;

    @Schema(description = "用户ID")
    private Long userId;
}
